package com.generator;

import com.generator.util.Generator;
import org.mybatis.generator.api.GeneratedJavaFile;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.PluginAdapter;

import java.util.List;

/**
 * @author fengz
 * @version v1
 * @className ToolPlugin
 * @description TODO
 * @site glp.hcdlearning.com
 * @company 合得软件（上海）有限公司
 * @create 2019-07-16 11:45
 */
public class CriterionPlugin extends PluginAdapter {

    @Override
    public boolean validate(List<String> warnings) {
        return true;
    }

    @Override
    public List<GeneratedJavaFile> contextGenerateAdditionalJavaFiles(IntrospectedTable introspectedTable) {
        Generator.generatedJavaFile(introspectedTable,"params/Criterion.java","");
        return null;
    }

}
